<?php

namespace App\Enums;

enum QuestionType: int
{
    case TEXT = 1;

    case RADIO = 2;

    /**
     * 对应的名称
     * @return string
     */
    public function name(): string
    {
        return match ($this) {
            self::TEXT => '输入框',
            self::RADIO => '单选',
        };
    }
}
